package com.gwl.pattern.template;

public abstract class AbstractHummerModel {

	protected abstract void start(); 
	protected abstract void stop(); 
	protected abstract void alam(); 
	protected abstract void engineBoom(); 
	protected boolean isAlam() { 
		return true; 
	}; 
	final public void run() throws InterruptedException{ 
		this.start(); 
		Thread.sleep(300); 
		this.engineBoom(); 
		Thread.sleep(300); 
		if(this.isAlam()) { 
			this.alam(); 
			Thread.sleep(300); 
		} 
		this.stop(); 
		
	}
	
}
